---------------------------------------------------------------------
-- 配色方案                                                        --
-- 作者:忘羽梦汐                                                   --
-- 功能介绍:主题的微调版配色方案                                   --
---------------------------------------------------------------------

local mocha = {
	rosewater = "#f5e0dc",
	flamingo = "#f2cdcd",
	pink = "#f5c2e7",
	mauve = "#cba6f7",
	red = "#f38ba8",
	maroon = "#eba0ac",
	peach = "#fab387",
	yellow = "#f9e2af",
	green = "#a6e3a1",
	teal = "#94e2d5",
	sky = "#89dceb",
	sapphire = "#74c7ec",
	blue = "#89b4fa",
	lavender = "#b4befe",
	text = "#cdd6f4",
	subtext1 = "#bac2de",
	subtext0 = "#a6adc8",
	overlay2 = "#9399b2",
	overlay1 = "#7f849c",
	overlay0 = "#6c7086",
	surface2 = "#585b70",
	surface1 = "#45475a",
	surface0 = "#313244",
	base = "#1f1f28",
	mantle = "#181825",
	crust = "#11111b",
}

local colorscheme = {
	-- 基础颜色
	foreground = mocha.text,
	background = mocha.base,

	-- 光标样式
	cursor_bg = mocha.rosewater,
	cursor_border = mocha.rosewater,
	cursor_fg = mocha.crust,

	-- 选择文本颜色
	selection_bg = mocha.surface2,
	selection_fg = mocha.text,

	-- ANSI 颜色（基础）
	ansi = {
		"#0C0C0C", -- black
		"#C50F1F", -- red
		"#13A10E", -- green
		"#C19C00", -- yellow
		"#0037DA", -- blue
		"#881798", -- magenta/purple
		"#3A96DD", -- cyan
		"#CCCCCC", -- white
	},

	-- ANSI 颜色（明亮）
	brights = {
		"#767676", -- black
		"#E74856", -- red
		"#16C60C", -- green
		"#F9F1A5", -- yellow
		"#3B78FF", -- blue
		"#B4009E", -- magenta/purple
		"#61D6D6", -- cyan
		"#F2F2F2", -- white
	},

	-- 标签栏颜色
	tab_bar = {
		background = "#000000",
		active_tab = { bg_color = mocha.surface2, fg_color = mocha.text },
		inactive_tab = { bg_color = mocha.surface0, fg_color = mocha.subtext1 },
		inactive_tab_hover = { bg_color = mocha.surface0, fg_color = mocha.text },
		new_tab = { bg_color = mocha.base, fg_color = mocha.text },
		new_tab_hover = { bg_color = mocha.mantle, fg_color = mocha.text, italic = true },
	},

	-- 视觉警告颜色（闪屏）
	visual_bell = mocha.surface0,

	-- 扩展索引颜色
	indexed = {
		[16] = mocha.peach,
		[17] = mocha.rosewater,
	},

	-- 滚动条滑块颜色
	scrollbar_thumb = mocha.surface2,

	-- 分割线颜色
	split = mocha.overlay0,

	-- 组合光标颜色（nightly 版本专用）
	compose_cursor = mocha.flamingo,
}

return colorscheme